/**
 * Initialize JQuery
 */
$(function() {
    $("#data-table").tablesorter( {
        widthFixed : true,
        widgets : [ 'zebra' ]
    }).tablesorterPager( {
        container : $("#pagers"),
        size: 10
    });
});

/**
 * Delete one record
 */
function deleteAction(id){
    if(!confirm('Apakah Anda ingin menghapus artikel ini?')) return;
    
    $('#formDelete #id').val(id);
    $('#formDelete').submit();
}